gtk4.git
5 years agotestsuite: Take textview-border-windows out of xfails
Matthias Clasen [Fri, 24 Apr 2020 22:35:22 +0000 (18:35 -0400)]
testsuite: Take textview-border-windows out of xfails

The textview-border-window reftest passes now, so
take it out of the xfails.

5 years agoreftests: Avoid text caret from interfering
Matthias Clasen [Fri, 24 Apr 2020 22:33:57 +0000 (18:33 -0400)]
reftests: Avoid text caret from interfering

We are comparing a transparent label to a transparent
text view, so need to make sure the caret does not show
up in the text view to ruin the comparison.

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Fri, 24 Apr 2020 20:50:01 +0000 (20:50 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

See merge request GNOME/gtk!1756

5 years agotestsuite: Take border-color-transparent out of xfails
Matthias Clasen [Fri, 24 Apr 2020 19:20:58 +0000 (15:20 -0400)]
testsuite: Take border-color-transparent out of xfails

The border-color-transparent reftest passes now, so
take it out of the xfails.

5 years agoreftests: Avoid theme influence
Matthias Clasen [Fri, 24 Apr 2020 19:19:24 +0000 (15:19 -0400)]
reftests: Avoid theme influence

Reset to defaults in background-color-transparent,
to avoid theme influence in the results.

5 years agoreftests: Avoid decorations
Matthias Clasen [Fri, 24 Apr 2020 19:18:02 +0000 (15:18 -0400)]
reftests: Avoid decorations

Window decorations always cause trouble between ci
and local test runs, so turn them off for the
background-color-transparent reftest.

5 years agoMerge branch 'grab-leftovers' into 'master'
Matthias Clasen [Thu, 23 Apr 2020 19:24:59 +0000 (19:24 +0000)]
Merge branch 'grab-leftovers' into 'master'

Drop gtk_widget_has_grab

See merge request GNOME/gtk!1752

5 years agoDrop gtk_widget_has_grab
Matthias Clasen [Thu, 23 Apr 2020 17:23:24 +0000 (13:23 -0400)]
Drop gtk_widget_has_grab

This was just a leftover in our public api.
All other grab-related apis are gone.

5 years agoMerge branch 'wip/exalm/window-headerbar' into 'master'
Benjamin Otte [Thu, 23 Apr 2020 15:26:30 +0000 (15:26 +0000)]
Merge branch 'wip/exalm/window-headerbar' into 'master'

First steps for #2242

See merge request GNOME/gtk!1739

5 years agoMerge branch 'focus-ring-experiment' into 'master'
Matthias Clasen [Thu, 23 Apr 2020 15:20:54 +0000 (15:20 +0000)]
Merge branch 'focus-ring-experiment' into 'master'

Tweak visible focus behavior

See merge request GNOME/gtk!1750

5 years agowindow: Stop listening to headerbar title changes
Alexander Mikhaylenko [Wed, 22 Apr 2020 17:56:52 +0000 (22:56 +0500)]
window: Stop listening to headerbar title changes

Remove another dependency.

5 years agoheaderbar: Update window buttons automatically
Alexander Mikhaylenko [Wed, 22 Apr 2020 17:39:40 +0000 (22:39 +0500)]
headerbar: Update window buttons automatically

Update the layout when any of the following properties changes:
 * modal
 * transient-for
 * resizable
 * deletable

Stop updating it from GtkWindow, make that function static.

5 years agowindow: Tweak visible focus behavior
Matthias Clasen [Tue, 21 Apr 2020 22:14:40 +0000 (18:14 -0400)]
window: Tweak visible focus behavior

Only turn on visible focus when a key event actually leads
to a change in focus location (ie, 'keynav').

Make the visible focus disappear after 5 seconds of no
keyboard interaction, to avoid permanent focus ring
distraction.

As an extra bonus, make it so that we make the focus
visible while the Alt key is pressed. This gives us
a 'find my focus!' shortcut, and goes well with the
prexisting use of Alt for finding mnemonics.

Discussed in: #2644

5 years agoMerge branch 'wip/jimmac/uniform-checkboxes' into 'master'
Jakub Steiner [Thu, 23 Apr 2020 11:44:47 +0000 (11:44 +0000)]
Merge branch 'wip/jimmac/uniform-checkboxes' into 'master'

Adwaita: lower glyph contrast for checkboxes

See merge request GNOME/gtk!1745

5 years agoAdwaita: lower glyph contrast for checkboxes
Jakub Steiner [Thu, 23 Apr 2020 08:53:02 +0000 (10:53 +0200)]
Adwaita: lower glyph contrast for checkboxes

- stylistic choice didn't sit well with majority of the design team

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Thu, 23 Apr 2020 04:02:12 +0000 (04:02 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

menusectionbox: Improve circular button spacing

Closes #2626

See merge request GNOME/gtk!1743

5 years agoAdwaita: Add padding to circular button rows in menus
Matthias Clasen [Thu, 23 Apr 2020 02:42:04 +0000 (22:42 -0400)]
Adwaita: Add padding to circular button rows in menus

The lack of this was negatively affecting the spacing
of these buttons.

Fixes: #2626
5 years agomenusectionbox: Improve circular button spacing
Matthias Clasen [Thu, 23 Apr 2020 02:16:46 +0000 (22:16 -0400)]
menusectionbox: Improve circular button spacing

In the n == 2 case, we want to avoid the buttons being
drawn all the way out to the ends of the box, but in the
n >= 3 case, that is exactly what we want for the first
and last button.

5 years agoMerge branch 'fix-icontheme-invalidation' into 'master'
Benjamin Otte [Thu, 23 Apr 2020 00:13:26 +0000 (00:13 +0000)]
Merge branch 'fix-icontheme-invalidation' into 'master'

Fix icontheme invalidation

See merge request GNOME/gtk!1733

5 years agoDrop gtk_widget_reset_style
Matthias Clasen [Wed, 22 Apr 2020 22:23:45 +0000 (18:23 -0400)]
Drop gtk_widget_reset_style

There was a single call left that should not be necessary.
Also drop no longer used attached-window functionality.

5 years agoDrop gtk_style_context_reset_widgets
Matthias Clasen [Tue, 21 Apr 2020 19:57:37 +0000 (15:57 -0400)]
Drop gtk_style_context_reset_widgets

This is no longer used.

5 years agowidget: Update when font settings change
Matthias Clasen [Tue, 21 Apr 2020 20:26:36 +0000 (16:26 -0400)]
widget: Update when font settings change

Update the pango context when font-related settings
change, using the new GtkSystemSetting mechanism.

5 years agoimage: Invalidate icon helper when icon theme changes
Matthias Clasen [Tue, 21 Apr 2020 16:11:15 +0000 (12:11 -0400)]
image: Invalidate icon helper when icon theme changes

This is necessary to drop the cached image.

5 years agoicontheme: Call gtk_system_setting_changed
Matthias Clasen [Tue, 21 Apr 2020 14:44:36 +0000 (10:44 -0400)]
icontheme: Call gtk_system_setting_changed

When the icon theme changes, we want to both initiate
a css SOURCE change (since css values may depend on the
icon theme), as well as calling gtk_system_setting_changed,
since widgets need to drop cached images, e.g. in GtkIconHelper.

5 years agosettings: Call gtk_system_setting_changed
Matthias Clasen [Tue, 21 Apr 2020 19:45:21 +0000 (15:45 -0400)]
settings: Call gtk_system_setting_changed

Replace calls to gtk_style_context_reset_widgets by
gtk_system_setting_changed, with the appropriate setting,
and add style invalidation where required.

5 years agowindow: Use gtk_system_setting_change
Matthias Clasen [Tue, 21 Apr 2020 20:56:42 +0000 (16:56 -0400)]
window: Use gtk_system_setting_change

Propagate GTK_SYSTEM_SETTING_DISPLAY when the display
of the window changes.

5 years agowidget: Add a system_setting_changed vfunc
Matthias Clasen [Tue, 21 Apr 2020 16:05:45 +0000 (12:05 -0400)]
widget: Add a system_setting_changed vfunc

This gives us a hook to walk the widget tree whenever a global
setting changes and do per-widget invalidations. This will
replace gtk_style_context_reset_widgets().

5 years agocss: Compare icon theme serials
Matthias Clasen [Wed, 22 Apr 2020 17:49:18 +0000 (13:49 -0400)]
css: Compare icon theme serials

When comparing to icon theme image values for equality,
take the serial of the icon theme at compute time into
account.

5 years agoMerge branch 'ci-custom-layout' into 'master'
Emmanuele Bassi [Wed, 22 Apr 2020 19:23:17 +0000 (19:23 +0000)]
Merge branch 'ci-custom-layout' into 'master'

Fix annotations for GtkCustomLayout

See merge request GNOME/gtk!1740

5 years agoicontheme: Keep a serial
Matthias Clasen [Wed, 22 Apr 2020 17:47:17 +0000 (13:47 -0400)]
icontheme: Keep a serial

This will let us identify when we have to re-lookup
icons because they may have changed despite the theme
object being the same.

5 years agoFix annotations for GtkCustomLayout
Emmanuele Bassi [Wed, 22 Apr 2020 18:24:45 +0000 (19:24 +0100)]
Fix annotations for GtkCustomLayout

Silence the warnings from the introspection scanner.

5 years agowindow: Introduce actions for window buttons
Alexander Mikhaylenko [Wed, 22 Apr 2020 17:32:10 +0000 (22:32 +0500)]
window: Introduce actions for window buttons

Add the following actions:
 * window.close
 * window.toggle-maximize
 * window.minimize

Ensure they are disabled when not appropriate, such as for modal windows.

Use them in GtkHeaderBar.

5 years agoheader-bar: Track window icon changes
Alexander Mikhaylenko [Wed, 22 Apr 2020 17:18:12 +0000 (22:18 +0500)]
header-bar: Track window icon changes

Listen to icon-name changes if it's in a GtkWindow. This allows to remove a
special case for headerbar-as-titlebar from GtkWindow.

5 years agoheader-bar: Don't assume there's only one icon
Alexander Mikhaylenko [Wed, 22 Apr 2020 16:35:32 +0000 (21:35 +0500)]
header-bar: Don't assume there's only one icon

Instead of tracking the titlebar icon widget, and updating it when the icon
changes, update the window buttons completely.

5 years agocss: Drop the -gtk-icon-theme property
Matthias Clasen [Tue, 21 Apr 2020 12:46:35 +0000 (08:46 -0400)]
css: Drop the -gtk-icon-theme property

We want to always use the current icon theme, and only
have the minimum amount of custom properties.

5 years agocss: Get the icon theme via the settings
Matthias Clasen [Wed, 22 Apr 2020 00:41:59 +0000 (20:41 -0400)]
css: Get the icon theme via the settings

We don't have a css value for it anymore, but we
still need the current icon theme to interpret
icon names.

5 years agoStop using the -gtk-icon-theme style property
Matthias Clasen [Tue, 21 Apr 2020 12:37:04 +0000 (08:37 -0400)]
Stop using the -gtk-icon-theme style property

We want to just use the current icon theme, always.

5 years agoheader-bar: Stop showing application menu
Alexander Mikhaylenko [Wed, 22 Apr 2020 16:24:37 +0000 (21:24 +0500)]
header-bar: Stop showing application menu

The application menu isn't particular relevant anymore, and the support for
showing fallback appmenu as a headerbar icon is one of the things tying
GtkWindow to GtkHeaderBar.

Remove support for "menu" window decoration element completely, update
GtkHeaderBar docs.

5 years agoicon-theme: Fix deadlock in GktIconTheme dispose
Alexander Larsson [Wed, 22 Apr 2020 12:20:33 +0000 (14:20 +0200)]
icon-theme: Fix deadlock in GktIconTheme dispose

When freeing the display GtkIconTheme and that was the last owner we
ran into a deadlock, because we unref the "next-to-last" ref inside a
gtk_icon_theme_ref_aquire/release() pair, which makes the final unref
to happen in the release(), while the ref lock still was held.
The unref triggers dispose which tries to NULL out the ref, but that then
deadlocks on the mutex being held by the caller already.

We fix this by moving the release unref outside the lock. This is safe
because refcounts are atomic, and we *do* own the ref.

5 years agoMerge branch 'wip/jimmac/HC-slider-border' into 'master'
Jakub Steiner [Wed, 22 Apr 2020 11:47:54 +0000 (11:47 +0000)]
Merge branch 'wip/jimmac/HC-slider-border' into 'master'

HC: fix switch slider borders

See merge request GNOME/gtk!1737

5 years agoHC: fix switch slider borders
Jakub Steiner [Wed, 22 Apr 2020 09:51:27 +0000 (11:51 +0200)]
HC: fix switch slider borders

- HC got caught up on a condition made for color (suggested) buttons.
  the rule just made the slider a tag lighter on dark probably due to the
  overlaid AA making it stronger. Got rid of it for now, if someone cares
  enough we can reintroduce an exception (that doesn't break HC).

5 years agoMerge branch 'fix-placesview-popover' into 'master'
Matthias Clasen [Tue, 21 Apr 2020 22:27:57 +0000 (22:27 +0000)]
Merge branch 'fix-placesview-popover' into 'master'

placesview: Fix up the address entry help popover

Closes #2642

See merge request GNOME/gtk!1731

5 years agoMerge branch 'missing-annotation' into 'master'
Emmanuele Bassi [Tue, 21 Apr 2020 21:56:43 +0000 (21:56 +0000)]
Merge branch 'missing-annotation' into 'master'

widget: Add missing callback annotation

See merge request GNOME/gtk!1732

5 years agoMerge branch 'wip/chergert/fix-toggle-caret-visibility' into 'master'
Matthias Clasen [Tue, 21 Apr 2020 21:11:53 +0000 (21:11 +0000)]
Merge branch 'wip/chergert/fix-toggle-caret-visibility' into 'master'

textview: fix assertion when toggling caret visibility

Closes #2647

See merge request GNOME/gtk!1736

5 years agotextview: fix assertion when toggling caret visibility
Christian Hergert [Tue, 21 Apr 2020 20:39:50 +0000 (13:39 -0700)]
textview: fix assertion when toggling caret visibility

When toggling caret visibility (with F7) we would hit an assertion if the
cursor is currently blinking. This adjusts things to ensure that we should
be showing the carent when scheduling our blink timeouts.

Fixes #2647

5 years agoMerge branch 'menu-section-title' into 'master'
Matthias Clasen [Tue, 21 Apr 2020 19:35:44 +0000 (19:35 +0000)]
Merge branch 'menu-section-title' into 'master'

Menu section title

See merge request GNOME/gtk!1735

5 years agoAdwaita: Some styling for menu section titles
Matthias Clasen [Tue, 21 Apr 2020 18:55:14 +0000 (14:55 -0400)]
Adwaita: Some styling for menu section titles

More fine-tuning needed.

5 years agoChange the approach to menu section titles
Matthias Clasen [Tue, 21 Apr 2020 18:48:39 +0000 (14:48 -0400)]
Change the approach to menu section titles

Put the label below the separator, and give
it the title style class.

5 years agowidget: Add missing callback annotation
Florian Müllner [Tue, 21 Apr 2020 14:08:10 +0000 (16:08 +0200)]
widget: Add missing callback annotation

GI can only figure out the correct scope if there's a GDestroyNotify
or GAsyncReadyCallback parameter.

5 years agodocs: migration guide fixes
Claudio Saavedra [Tue, 21 Apr 2020 12:37:45 +0000 (15:37 +0300)]
docs: migration guide fixes

5 years agodocs: fix typo
Claudio Saavedra [Tue, 21 Apr 2020 11:49:13 +0000 (14:49 +0300)]
docs: fix typo

5 years agoplacesview: Fix up the address entry help popover
Matthias Clasen [Tue, 21 Apr 2020 11:43:52 +0000 (07:43 -0400)]
placesview: Fix up the address entry help popover

Popovers without parent don't work anymore. Set a
parent, a fix up the position.

Fixes: #2642
5 years agoMerge branch 'wip/jimmac/hc-public-colors' into 'master'
Jakub Steiner [Tue, 21 Apr 2020 11:08:28 +0000 (11:08 +0000)]
Merge branch 'wip/jimmac/hc-public-colors' into 'master'

HC: export public colors

Closes #2641

See merge request GNOME/gtk!1730

5 years agoHC: export public colors
Jakub Steiner [Tue, 21 Apr 2020 10:39:34 +0000 (12:39 +0200)]
HC: export public colors

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/2641

5 years ago3.98.3
Matthias Clasen [Tue, 21 Apr 2020 04:32:23 +0000 (00:32 -0400)]
3.98.3

5 years agoFix label accessibility
Matthias Clasen [Tue, 21 Apr 2020 03:14:25 +0000 (23:14 -0400)]
Fix label accessibility

Emit accessible change signals after setting the
new selection limits. This was broken in
commit f6bedd0d5e4c8f7b, and showed up as broken
accessibility tests.

5 years agoMerge branch 'container-focus-cleanup' into 'master'
Matthias Clasen [Mon, 20 Apr 2020 21:20:57 +0000 (21:20 +0000)]
Merge branch 'container-focus-cleanup' into 'master'

Strip down GtkContainer

See merge request GNOME/gtk!1722

5 years agoMove the idle sizer to GtkWindow
Matthias Clasen [Sun, 19 Apr 2020 15:43:57 +0000 (11:43 -0400)]
Move the idle sizer to GtkWindow

This was only living in gtkcontainer.c for historic
reasons. Move it closer to where it belongs, and
rename it from 'idle' to 'layout', since it is
really about the layout phase of the frame clock,
nowadays.

5 years agocontainer: Cosmetic doc cleanup
Matthias Clasen [Sun, 19 Apr 2020 15:23:39 +0000 (11:23 -0400)]
container: Cosmetic doc cleanup

Remove remnants of child properties from the
documentation. They no longer exist.

5 years agoMove set_focus_child to GtkWidget
Matthias Clasen [Sun, 19 Apr 2020 15:18:02 +0000 (11:18 -0400)]
Move set_focus_child to GtkWidget

Move the set_focus_child vfunc from GtkContainer
to GtkWidget. This removes the last focus functionality
from GtkContainer.

Update the two users.

5 years agoNEWS: More updates
Matthias Clasen [Mon, 20 Apr 2020 20:29:30 +0000 (16:29 -0400)]
NEWS: More updates

5 years agoMerge branch 'wip/carlosg/grabbing-popovers' into 'master'
Matthias Clasen [Mon, 20 Apr 2020 19:01:55 +0000 (19:01 +0000)]
Merge branch 'wip/carlosg/grabbing-popovers' into 'master'

gtkpopover: Set GTK grab on autohide popovers

Closes #2446

See merge request GNOME/gtk!1729

5 years agogtkpopover: Set GTK grab on autohide popovers
Carlos Garnacho [Mon, 20 Apr 2020 17:48:10 +0000 (19:48 +0200)]
gtkpopover: Set GTK grab on autohide popovers

These popovers handle clicks outside the widget, and expect input
to be routed through it when it is shown. This pretty much matches
the characteristics of GTK grabs, and setting one up will ensure
the cancellation of event controllers that were active at the time
of showing the popover.

Closes: https://gitlab.gnome.org/GNOME/gtk/-/issues/2446
5 years agoMerge branch 'docs-work' into 'master'
Matthias Clasen [Mon, 20 Apr 2020 05:33:02 +0000 (05:33 +0000)]
Merge branch 'docs-work' into 'master'

Docs work

See merge request GNOME/gtk!1727

5 years agoAssorted documentation fixes
Matthias Clasen [Mon, 20 Apr 2020 02:50:35 +0000 (22:50 -0400)]
Assorted documentation fixes

5 years agowidget: Remove some leftovers
Matthias Clasen [Mon, 20 Apr 2020 02:55:30 +0000 (22:55 -0400)]
widget: Remove some leftovers

gtk_widget_can_activate_accel is gone, so remove the
vfunc and declaration.

5 years agoMerge branch 'BUG_regression_select_folder_GTK4' into 'master'
Matthias Clasen [Sun, 19 Apr 2020 23:15:28 +0000 (23:15 +0000)]
Merge branch 'BUG_regression_select_folder_GTK4' into 'master'

GtkFileChooserWidget: fix refactor regression

Closes #2635

See merge request GNOME/gtk!1726

5 years agoGtkFileChooserWidget: fix refactor regression
Nelson Benítez León [Sun, 19 Apr 2020 22:00:37 +0000 (18:00 -0400)]
GtkFileChooserWidget: fix refactor regression

Commit 4a3742979dc which removed
GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER slipped
a bad g_assert() refactoring, which is causing
a crash when selecting a folder in a GtkFileChooserButton
dialog.

Fixes #2635

5 years agoDocs: Various tweaks
Matthias Clasen [Sun, 19 Apr 2020 20:26:25 +0000 (16:26 -0400)]
Docs: Various tweaks

Tweak the docs for library initialization, versioning
and settings, and remove some outdated information.

5 years agoAdd GtkShortcutLabel to the docs
Matthias Clasen [Sun, 19 Apr 2020 19:41:51 +0000 (15:41 -0400)]
Add GtkShortcutLabel to the docs

5 years agoAdd GtkCenterLayout to the docs
Matthias Clasen [Sun, 19 Apr 2020 17:29:16 +0000 (13:29 -0400)]
Add GtkCenterLayout to the docs

5 years agodocs: Restructure a bit
Matthias Clasen [Sun, 19 Apr 2020 17:15:05 +0000 (13:15 -0400)]
docs: Restructure a bit

Split the overview sections off into its own "concepts part.

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Sun, 19 Apr 2020 16:40:03 +0000 (16:40 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Remove GdkGeometry from public API

See merge request GNOME/gtk!1720

5 years agoSome minor documentation fixes
Matthias Clasen [Sun, 19 Apr 2020 02:58:07 +0000 (22:58 -0400)]
Some minor documentation fixes

5 years agoRemove GdkGeometry from public API
Matthias Clasen [Sun, 19 Apr 2020 02:48:02 +0000 (22:48 -0400)]
Remove GdkGeometry from public API

The api to configure surfaces is now GdkToplevelLayout
and GdkPopupLayout. Unfortunately, there's still quite
a bit of internal use of GdkGeometry that will take some
time to clean up, so move it go gdkinternals.h for now.

5 years agoRemove GdkGeometry from public API
Matthias Clasen [Sun, 19 Apr 2020 02:48:02 +0000 (22:48 -0400)]
Remove GdkGeometry from public API

The api to configure surfaces is now GdkToplevelLayout
and GdkPopupLayout. Unfortunately, there's still quite
a bit of internal use of GdkGeometry that will take some
time to clean up, so move it go gdkinternals.h for now.

5 years agoMerge branch 'fix-infobar-styling' into 'master'
Timm Bäder [Sun, 19 Apr 2020 13:11:13 +0000 (13:11 +0000)]
Merge branch 'fix-infobar-styling' into 'master'

Adwaita: Fix and simplify infobar styling

See merge request GNOME/gtk!1711

5 years agoAdwaita: Fix and simplify infobar styling
nana-4 [Sat, 18 Apr 2020 06:14:53 +0000 (15:14 +0900)]
Adwaita: Fix and simplify infobar styling

- Apply sizing regardless of style class.
- Fix bottom border not reaching the bottom corners.
- Remove unnecessary style overrides that should have been removed
  during the redesign.

5 years agoMerge branch 'theme-link-styling-fixes' into 'master'
Timm Bäder [Sun, 19 Apr 2020 08:37:15 +0000 (08:37 +0000)]
Merge branch 'theme-link-styling-fixes' into 'master'

Adwaita: Fix link styling

See merge request GNOME/gtk!1721

5 years agoAdwaita: Fix link styling
nana-4 [Sun, 19 Apr 2020 06:21:40 +0000 (15:21 +0900)]
Adwaita: Fix link styling

- Fix broken visited link styling by avoiding invalid selector
  `:link:visited` - CSS :link and :visited are mutually exclusive.
- In link button, move %link from the child label to the parent button,
  so that the hover/active effect is applied within the whole button and
  the visited style is applied correctly.
- Remove invalid selectors `:backdrop:backdrop`.

5 years agoMerge branch 'fix-css-filter-transitions' into 'master'
Matthias Clasen [Sun, 19 Apr 2020 02:00:26 +0000 (02:00 +0000)]
Merge branch 'fix-css-filter-transitions' into 'master'

css: Allow transitioning between different units again

See merge request GNOME/gtk!1719

5 years agocss: Allow transitioning between different units again
Matthias Clasen [Sun, 19 Apr 2020 01:10:32 +0000 (21:10 -0400)]
css: Allow transitioning between different units again

This turns out to be necessary for transitioning filters,
and we run into criticals if transitioning numbers
unexpectedly returns NULL. I've observed that with

* {
  filter: invert(80%);
}

This was broken in c9e972eecb3a78ea.

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Sat, 18 Apr 2020 22:52:15 +0000 (22:52 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

css: Give none singletons unique names

See merge request GNOME/gtk!1718

5 years agoMerge branch 'wip/fix-multi-popup-hide' into 'master'
Matthias Clasen [Sat, 18 Apr 2020 22:33:52 +0000 (22:33 +0000)]
Merge branch 'wip/fix-multi-popup-hide' into 'master'

Fix autohiding popup chain

See merge request GNOME/gtk!1717

5 years agostatusbar: Don't use a frame
Matthias Clasen [Sat, 18 Apr 2020 21:29:13 +0000 (17:29 -0400)]
statusbar: Don't use a frame

This frame serves no purpose anymore, and now that frames
draw frames, it shows up annoyingly.

5 years agoMerge branch 'focus-adjustment' into 'master'
Matthias Clasen [Sat, 18 Apr 2020 20:59:50 +0000 (20:59 +0000)]
Merge branch 'focus-adjustment' into 'master'

Drop container focus adjustments

See merge request GNOME/gtk!1716

5 years agowayland: Don't continue showing if xdg_popup creation failed
Jonas Ådahl [Sat, 18 Apr 2020 20:51:21 +0000 (22:51 +0200)]
wayland: Don't continue showing if xdg_popup creation failed

We don't create a grabbing popup if it's not the top most one, as that
is a protocol violation, and complain if anything attempts to do it.
What we didn't do is handle this gracefully in the code that tries to
create said popup.

Fix this by dropping the attempt to show the popup on the floor, instead
of setting various state making it look like it succeeded. This won't
actually fix anything, but it'll result in a bit more accurate warnings
logged, as the state more correctly corresponds to the reality.

5 years agosurface: Hide chained autohiding popups together
Jonas Ådahl [Sat, 18 Apr 2020 20:33:52 +0000 (22:33 +0200)]
surface: Hide chained autohiding popups together

When we autohide a popup surface with a grab, hide all other auto hiding
popups up the popup chain. The end result is that when you click outside
a menu with submenus open, the whole menu chain is dismissed.

5 years agopopover: Fix indentation
Jonas Ådahl [Sat, 18 Apr 2020 20:33:29 +0000 (22:33 +0200)]
popover: Fix indentation

5 years agoMerge branch 'BUG_sibebarplaces_avoid_click_focus_GTK4' into 'master'
Matthias Clasen [Sat, 18 Apr 2020 19:51:29 +0000 (19:51 +0000)]
Merge branch 'BUG_sibebarplaces_avoid_click_focus_GTK4' into 'master'

GtkPlacesSidebar: avoid location clicks to grab focus

See merge request GNOME/gtk!1715

5 years agocss: Give none singletons unique names
Matthias Clasen [Sat, 18 Apr 2020 19:24:13 +0000 (15:24 -0400)]
css: Give none singletons unique names

This makes for a less confusing experience in gdb.

5 years agodocs: Mention focus adjustments in the migration guide
Matthias Clasen [Sat, 18 Apr 2020 18:59:52 +0000 (14:59 -0400)]
docs: Mention focus adjustments in the migration guide

5 years agoDrop gtk_container_set_focus_[hv]adjustment
Matthias Clasen [Sat, 18 Apr 2020 18:55:41 +0000 (14:55 -0400)]
Drop gtk_container_set_focus_[hv]adjustment

This functionality should be provided by scrollables, see
for example by the recently added GtkViewport:scroll-to-focus.

5 years agotests: Stop using focus adjustments
Matthias Clasen [Sat, 18 Apr 2020 18:52:50 +0000 (14:52 -0400)]
tests: Stop using focus adjustments

Set scroll-to-focus instead, in testgtk.

5 years agoflowbox: Stop setting focus adjustments
Matthias Clasen [Sat, 18 Apr 2020 18:45:29 +0000 (14:45 -0400)]
flowbox: Stop setting focus adjustments

5 years agoinspector: Use the new scroll-to-focus
Matthias Clasen [Fri, 17 Apr 2020 02:47:37 +0000 (22:47 -0400)]
inspector: Use the new scroll-to-focus

5 years agoscrolledwindow: Stop setting focus adjustments
Matthias Clasen [Thu, 16 Apr 2020 21:24:04 +0000 (17:24 -0400)]
scrolledwindow: Stop setting focus adjustments

Stop setting focus adjustments on the automatically
generated viewport.

5 years agoAdd a test for scroll-to-focus
Matthias Clasen [Thu, 16 Apr 2020 21:23:48 +0000 (17:23 -0400)]
Add a test for scroll-to-focus

5 years agoviewport: Add GtkViewport:scroll-to-focus
Matthias Clasen [Thu, 16 Apr 2020 21:22:54 +0000 (17:22 -0400)]
viewport: Add GtkViewport:scroll-to-focus

And implement this property by listening for focus
changes, and updating the adjustments. This is a
replacement for setting focus adjustments on containers.

5 years agoGtkPlacesSidebar: avoid location clicks to grab focus
Nelson Benítez León [Sat, 18 Apr 2020 18:24:53 +0000 (14:24 -0400)]
GtkPlacesSidebar: avoid location clicks to grab focus

Sibebar location rows should not grab focus on click.

Fixes filechooser issue #1469